﻿namespace Ruirun.Mes.Options
{
    /// <summary>
    /// Demo配置选项，
    /// 配置文件样式形如：
    ///   "Project": {
    ///     "DemoString": "DemoString",
    ///     "DemoInt32": 123,
    ///     "DemoBoolean": true,
    ///     "DemoEnum": "Date",
    ///     "DemoStringArray": "1,2,3,4,5",
    ///     "DemoItems": [
    ///       {
    ///         "DemoId": "manager",
    ///         "DemoName": "administrator"
    ///       }
    ///     ]
    ///   }
    /// </summary>
    public class ProjectOptions
    {
        /// <summary>
        /// 获取或设置 DemoString
        /// </summary>
        public string DemoString { get; set; }

        /// <summary>
        /// 获取或设置 DemoInt32
        /// </summary>
        public int DemoInt32 { get; set; }

        /// <summary>
        /// 获取或设置 DemoBoolean
        /// </summary>
        public bool DemoBoolean { get; set; }

        /// <summary>
        /// 获取或设置 DemoStringArray
        /// </summary>
        public string[] DemoStringArray { get; set; }

        /// <summary>
        /// 获取或设置 Demo配置列表集合
        /// </summary>
        public IEnumerable<OptionItem> DemoItems { get; set; } = new List<OptionItem>();

    }

    /// <summary>
    /// 配置列表
    /// </summary>
    public class OptionItem
    {
        /// <summary>
        /// 获取或设置 DemoId
        /// </summary>
        public string DemoId { get; set; }

        /// <summary>
        /// 获取或设置 DemoName
        /// </summary>
        public string DemoName { get; set; }

    }
}